#!coding=utf-8
from django.conf.urls import patterns, include, url
import views
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('enterprise_facilities',

    # Examples:
    # url(r'^$', 'chemicals.views.home', name='home'),
    # url(r'^chemicals/', include('chemicals.foo.urls')),
    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),

    #厂区布置
    url(r'^enterLayout/$', 'views.enterLayout'),
    url(r'^submitArea/(\d{1,9})$', 'views.submitArea'),

    #生产区
    url(r'^productAreaList/$', 'views.productAreaList'),
    url(r'^productAreaAdd/$', 'views.productAreaAdd'),
    url(r'^productAreaDetail/(\d{1,9})$', 'views.productAreaDetail'),
    url(r'^productAreaEdit/(\d{1,9})$', 'views.productAreaEdit'),
    url(r'^productAreaDel/(\d{1,9})$', 'views.productAreaDel'),
    url(r'^productAreaItems/(\d{1,9})$', 'views.productAreaItems'),

    url(r'^productAreaMap/$', 'mapfn.productMap'),
    url(r'^productAreaGeo/$', 'mapfn.productGeoDataList'),
    url(r'^productAreaGeo/size/(\d{1,9})/page/(\d{1,9})/$','mapfn.productDataByPage'),
    url(r'^productAreaGeo/add/$','mapfn.productGeoDataAdd'),

    url(r'^productionList/(\d{1,9})$','views.productionList'),
    url(r'^productionAdd/(\d{1,9})$','views.productionAdd'),
    url(r'^productionDetail/(\d{1,9})$','views.productionDetail'),
    url(r'^productionEdit/(\d{1,9})$','views.productionEdit'),
    url(r'^productionDel/(\d{1,9})$','views.productionDel'),

    #储罐区
    url(r'^storageAreaList/$', 'views.storageAreaList'),
    url(r'^storageAreaAdd/$', 'views.storageAreaAdd'),
    url(r'^storageAreaEdit/(\d{1,9})$', 'views.storageAreaEdit'),
    url(r'^storageAreaDetail/(\d{1,9})$', 'views.storageAreaDetail'),
    url(r'^storageAreaDel/(\d{1,9})$', 'views.storageAreaDel'),
    url(r'^storageAreaItems/(\d{1,9})$', 'views.storageAreaItems'),

    url(r'^storageAreaMap/$', 'mapfn.storageMap'),
    url(r'^storageAreaGeo/$', 'mapfn.storageGeoDataList'),
    url(r'^storageAreaGeo/size/(\d{1,9})/page/(\d{1,9})/$','mapfn.storageDataByPage'),
    url(r'^storageAreaGeo/add/$','mapfn.storageGeoDataAdd'),

    url(r'^storageList/(\d{1,9})$','views.storageList'),
    url(r'^storageAdd/(\d{1,9})$','views.storageAdd'),
    url(r'^storageEdit/(\d{1,9})$','views.storageEdit'),
    url(r'^storageDel/(\d{1,9})$','views.storageDel'),
    url(r'^storageDetail/(\d{1,9})$','views.storageDetail'),

)
